package spring.cloud.tasks.executor;

import spring.cloud.tasks.executor.executor.Executor;

public class BootStrap {
    Executor executor = null;
    private String namespace;
    private String executorName;

    public void startExecutor() throws Exception {
        String namespace = null;
        String executorName = null;
        executor = Executor.buildExecutor(namespace, executorName);
        executor.execute();
    }


    public void shutdown() throws Exception {
        executor.shutdown();
    }

    public void shutdownGracefully() throws Exception {
        executor.shutdownGracefully();
    }


}